package com.huawei.appgallery.search.ui.card;

import android.content.Context;
import android.widget.TextView;
import com.huawei.appgallery.foundation.card.base.card.BaseDistCard;
import o.dof;

public class BaseCompositeItemCard extends BaseDistCard {
    private int ʻ;
    private int ˋ;

    public BaseCompositeItemCard(Context context) {
        super(context);
    }

    public boolean ˊ() {
        return this.ʻ == 0;
    }

    public boolean ˎ() {
        return this.ʻ == this.ˋ + -1;
    }

    public void ˏ(int i) {
        this.ˋ = i;
    }

    public void ᐝ(int i) {
        this.ʻ = i;
    }

    protected void ˏ(TextView textView, String str) {
        if (textView != null) {
            if (dof.ॱ(str)) {
                textView.setVisibility(4);
                return;
            }
            textView.setText(str);
            textView.setVisibility(0);
        }
    }
}
